package ocean.chinacraft.common.world.block.properties;

import net.minecraft.block.Block;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.block.material.MaterialColor;
import net.minecraftforge.common.ToolType;

/**
 * 属性杂项
 *
 * @author zhang
 * @since 2021/11/9
 */
public class PropertiesMisc {

    public static Block.Properties defaultStone() {
        return Block.Properties.of(Material.STONE, MaterialColor.STONE)
                .strength(3F, 6F)
                .harvestTool(ToolType.PICKAXE)
                .sound(SoundType.STONE)
                .requiresCorrectToolForDrops();
    }

    public static Block.Properties defaultFunction() {
        return Block.Properties.of(Material.METAL, MaterialColor.METAL)
                .strength(1.5F, 6F)
                .sound(SoundType.METAL);
    }

    public static Block.Properties defaultDecoration() {
        return Block.Properties.of(Material.STONE)
                .strength(2F, 6F)
                .sound(SoundType.WOOD);
    }

    public static Block.Properties defaultWindow() {
        return Block.Properties.of(Material.STONE)
                .strength(0.3F, 2F)
                .sound(SoundType.GLASS).noOcclusion();
    }
}
